export default class User {
    constructor(opts = {}) {
        this.lockFlag = opts.lockFlag;
        this.policeId = opts.policeId;
        this.kpiFlag = opts.kpiFlag;
        this.removeFlag = opts.removeFlag;        
        this.roles = opts.roles || [];
        this.idCardNumber = opts.idCardNumber;
        this.lockEndTime = opts.lockEndTime;
        this.updateTime = opts.updateTime;
        this._id = opts.id;
        this._userName = opts.userName;
        this._account = opts.account;
        this._companyName = opts.companyName;
        this.administrator = opts.administrator || false;
        this.userId = this._id;
        this.userName = this._account;
        this.cnName = this._userName;
        this.departmentName = this._companyName;
    }
}